<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>办事大厅</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css"/>
    <%--引入echarts--%>
    <script src="${pageContext.request.contextPath}/js/echarts.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/item/declare.css">


    <script>

    </script>
</head>

<body>
<div class="">
    <div class="header">

        <%@ include file="../pub/header.jsp" %>

        <div class="nav">
            <div class="container">

                <div class="row">
                    <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/index">首&nbsp;页</a>
                    <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/user/news">新闻资讯</a>
                    <a class="col-md-3 col-xs-6 active" href="${pageContext.request.contextPath}/re_approve/item">办事大厅</a>
                    <a class="col-md-3 col-xs-6"
                       href="${pageContext.request.contextPath}/item/revealFull">公示信息</a>
                </div>
            </div>
        </div>
    </div>
    <br><br>
    <div class="container">
        <div class="l_fourth">
        <div class="row">
            <div class="title col-md-12 col-xs-12" style="float: right;background-image: url('${pageContext.request.contextPath}/img/index/Frame 11@2x.png')" >
                <span class="one" style="font-size: 24px;margin-left: 6px">  办事列表</span>
                <span class="two" style="color: white;margin-top: 5px; "><a  href="javaScript:history.back(-1)">返回</a></span>
            </div>
        </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="bs-example" data-example-id="striped-table">
                <table class="table table-striped " id="kk">
                    <thead style="background-color: rgb( 34, 139, 205) ;color: white">
                    <tr>
                        <th>部门名称</th>
                        <th>项目代码</th>
                        <th>事项名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${list}" var="l">
                        <tr align="center">
                            <td>${l.dept.name}</td>
                            <td>${l.code}</td>
                            <td>${l.name}</td>
                            <td><a
                                   href="${pageContext.request.contextPath}/re_approve/guide?id=${l.id}" target="_top">
                                <p>申报详细</p></a></td>
                        </tr>
                    </c:forEach>
                    </tbody>
                    <c:if test="${list.size() ==0}">
                        <tbody>
                        <tr class="item-no">
                            <td colspan="4">没有数据</td>
                        </tr>
                        </tbody>
                    </c:if>
                </table>
            </div>
        </div>



        <center>
            <ul class="pagination pg-primary my-test">
                <c:if test="${page!=1}">
                    <li class="page-item">
                        <a class="page-link" href="?page=${page-1}" aria-label="Previous">
                            <span aria-hidden="true">上一页</span>

                            <span class="sr-only">Previous</span>
                        </a>
                    </li>
                </c:if>
                <c:forEach begin="1" end="${pageSize}" var="i">
                    <li class="page-item  ${page==i?'active':''}">
                        <a class="page-link" style="height: 39px"
                           href="${pageContext.request.contextPath}/re_approve/item?groupId=${groupId}&&page=${i}">${i}</a>
                    </li>
                </c:forEach>
                <c:if test="${page!=pageSize}">
                    <li class="page-item">
                        <a class="page-link" href="?groupId=${groupId}&&page=${page+1}" aria-label="Next">
                            <span aria-hidden="true">下一页</span>

                            <span class="sr-only">Next</span>
                        </a>
                    </li>
                </c:if>
                <span style=" position: relative;top: 10px;left: 39px;">
                共：${count==null?0:count}条
            </span>

            </ul>
        </center>
    </div>

    <%@include file="../pub/footer.jsp" %>
</div>
<script>


</script>


</body>
</html>
